<template>
  <section class="features">
    <div class="container">
      <h2 class="section-title">教学特色</h2>
      <div class="feature-grid">
        <div class="feature-card game">
          <div class="feature-icon">
            <span class="icon">🎮</span>
          </div>
          <h3 class="feature-title">游戏化编程</h3>
          <p class="feature-desc">通过有趣的游戏形式学习编程，提高孩子的学习积极性</p>
          <a href="#" class="feature-link">了解更多 →</a>
        </div>
        
        <div class="feature-card visual">
          <div class="feature-icon">
            <span class="icon">🧩</span>
          </div>
          <h3 class="feature-title">图形化逻辑训练</h3>
          <p class="feature-desc">直观的图形界面，培养孩子的编程逻辑思维</p>
          <a href="#" class="feature-link">了解更多 →</a>
        </div>
        
        <div class="feature-card collaborative">
          <div class="feature-icon">
            <span class="icon">👥</span>
          </div>
          <h3 class="feature-title">协作与项目开发</h3>
          <p class="feature-desc">团队协作完成编程项目，培养沟通能力和合作精神</p>
          <a href="#" class="feature-link">了解更多 →</a>
        </div>
      </div>
    </div>
  </section>
</template>

<script>
export default {
  name: 'FeatureCards'
}
</script>

<style scoped>
.features {
  padding: 60px 20px;
  background-color: #f7f9fc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: #3e8ef7;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(62, 142, 247, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-card.game .feature-icon {
  background-color: rgba(0, 200, 83, 0.1);
}

.feature-card.visual .feature-icon {
  background-color: rgba(255, 123, 0, 0.1);
}

.feature-card.collaborative .feature-icon {
  background-color: rgba(62, 142, 247, 0.1);
}

.icon {
  font-size: 36px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #333;
}

.feature-desc {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.feature-link {
  display: inline-block;
  color: #3e8ef7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.feature-card.game .feature-link {
  color: #00c853;
}

.feature-card.visual .feature-link {
  color: #ff7b00;
}

.feature-card.collaborative .feature-link {
  color: #3e8ef7;
}

.feature-link:hover {
  text-decoration: underline;
}
</style> 